Whenever any warrant issued under sections 249.010 to 249.420 is not paid when presented to the president of the board of trustees of the district, because of lack of funds in the treasury, such fact shall be endorsed on the back of such warrant and such warrant shall draw interest thereafter at the rate of six percent per annum until such time as there is money on hand or in the treasury to pay the amount of such warrant and the interest then accumulated, but no interest shall be allowed or paid on any warrant after the time when sufficient funds are in the treasury or on hand to pay such endorsed warrants with interest.