28-1-1302. Effect when performance prevented by creditor. If the performance of an obligation is prevented by the creditor, the debtor is entitled to all the benefits that the debtor would have obtained if the obligation had been performed by both parties.