If the purchaser of real property sold on execution, or a successor in interest is evicted from the property because of irregularities in the proceedings concerning the sale or the reversal or discharge of the judgment, the purchaser or a successor may recover the price paid with interest, costs, and disbursements from the judgment creditor.