Any bond, contract, or undertaking made in violation of the provisions of this chapter shall be void.

s. 4, ch. 6519, 1913; RGS 4044; CGL 5966.