Whenever any city or town in this State had prior to February 7 1927 issued bonds for the acquisition, by construction, purchase or otherwise, of any waterworks, lighting plant or other public utility and sells such utility prior to the maturity of such bonds, the governing body of such city or town may invest an amount of the proceeds of sale of such utility equal to the amount of outstanding bon