The debtor may redeem without claiming a reduction on account of the rents and profits of the estate received by the creditor or purchaser; and in such case the debtor may recover such rents and profits of the creditor or purchaser, in an action of assumpsit for use and occupation.