If it appears, when any certificate of indemnity or scrip is surrendered that the owner of the certificate was not qualified to purchase State lands when the certificate was purchased, the certificate shall be canceled and become null and void, and he shall be entitled to restitution therefor.