If the person so disposing of the property shall pay over to the lienor or owner of the debt so secured the proceeds of the sale, or sufficient thereof to satisfy the lien, or in case the owner of the debt shall have received or recovered from the purchaser of the property the value thereof, then if the party so disposing of such property shall pay to the purchaser the proceeds of sale, and all costs of the prosecution accrued, and all before the person so disposing of such property is arraigned for trial, the person so disposing of such property shall not be so held liable.