The land so disconnected shall not thereby be exempt from the payment of any taxes lawfully assessed against it for the purpose of paying any indebtedness lawfully contracted by the governing body of such municipality while such land was within the limits thereof and which remains unpaid and for the payment of which said land could be lawfully taxed.