In suits brought upon life policies heretofore or hereafter issued, no defense based upon misrepresentation in obtaining or securing the same shall be valid unless the defendant, at or before the trial, shall deposit in court for the benefit of the plaintiff the premiums received on such policies.
K.S.A. 40-419