A person shall not be released on bail for which an attorney at law, a judge, or ministerial officer of a court becomes a surety or provides money or property for bail; but the invalidity of such bail shall not be a defense to an action to forfeit and enforce the bail.
La. Cr.P. § 327