No officer or board charged by law with the duty of approving official bonds may approve any bond made in violation of this chapter. No bond given or approved in contravention of section 44-01-14 may be held to be invalid by reason thereof.