(3)When any immovable property is transferred otherwise than by sale by the Government to a Municipality for public purposes, it shall be deemed to be a condition of such transfer, unless specially provided to the contrary, that should the property be at any time resumed by the Government, the compensation payable therefor shall notwithstanding anything to the contrary contained in the Land Acquisition Act, 1894 (Act 1 of 1894), in no case exceed the amount, if any, paid to the Government for the transfer together with the cost or the present value whichever shall be less, of any buildings erected or other works executed on the land by the Municipality.