When territory is taken from one school district and annexed to another school district and the area transferred contains no public school property or buildings, the territory shall drop any liability for outstanding bonded indebtedness in the district of which it was formerly a part and shall automatically assume its proportionate share of the outstanding bonded indebtedness of the district of which it becomes a part.