Any note, endorsement, guaranty, pledge, hypothecation, lien or other obligation given contrary to the provisions of sections 48.16 to 48.18 shall be null and void.