Where irrigation assessments against any such lands remained unpaid at the time the Indian title to such lands became extinguished and no lien existed and attached to such lands for the payment of charges so assessed and no contract for the payment of such charges was entered into, the Secretary shall cancel all such charges.