If the pledge earns or produces fruits, income, dividends, or interests, the creditor shall compensate what he receives with those which are owing him; but if none are owing him, or insofar as the amount may exceed that which is due, he shall apply it to the principal