If a suit, action, or proceeding to enforce any right or exercise any remedy is abandoned or determined adversely to the bondholders or their trustees, the local agency and bondholder or trustee shall be restored to their former positions, rights, and remedies as if such suit, action, or proceeding had not been brought or taken.