Upon a change of the territorial boundaries of a body to which a grant has been made, such funds as remain from such grant shall be re-allocated on the basis of population.