When a right of redeeming real estate mortgaged or taken on execution is attached and such estate is redeemed or the encumbrance removed before the levy of the execution, the attachment holds the premises discharged of the mortgage or levy, as if they had not existed.
14 M.R.S. § 4453