Taxes or assessments levied or assessed against property located in territory withdrawn from a district shall remain a lien and be collected as by law provided when the taxes or assessments are levied or assessed prior to the withdrawal or when the levies or assessments are duly made to provide revenue for the payment of general obligations or general obligation bonds of the district duly incurred or issued prior to the withdrawal.