In case any municipality shall discontinue any proceeding taken, providing for the appropriation or condemnation of any bridge, prior to the entry upon, taking, or appropriation thereof, and before judgment therein, the said municipality shall not thereafter be liable to pay any damages which have been or might have been allowed; but all costs upon any proceedings had thereon shall be paid by it, together with any actual damage, loss, or injury sustained by reason of such proceedings; and such damage, loss, or injury shall be determined and fixed by the court in which the proceedings are pending.
53 P.S. § 2617