At any time within one year after the sale, the mortgagor, the mortgagor’s heirs or assigns, may recover from the owner of the mortgage at the time of foreclosure three times the amount of any sums charged as costs or disbursements on such foreclosure but not absolutely paid, unless such amounts have been paid to the mortgagor or the mortgagor’s assigns.