If a bond does not contain the matter or condition required by law, or there is a defect in the approval or filing of the bond, the bond is not void and the obligor and the obligor's sureties are bound to the state or party interested, and the state or party may, by action instituted in any court of competent jurisdiction, suggest the defect and recover a proper and equitable demand from the obligor and surety.