In case any such municipal corporation shall repeal any ordinance passed, or discontinue any proceedings taken, providing for any of the improvements mentioned in the preceding sections prior to the entry upon, taking, appropriation or injury to, any property or materials, and within thirty days after the filing of the report of viewers assessing damages and benefits, the said municipality shall not thereafter be liable to pay any damages which have been, or might have been, assessed, but all costs upon any proceeding had thereon shall be paid by said municipal corporation, together with any actual damage, loss or injury sustained by reason of such proceedings.
53 P.S. § 1092