If the total fees collected by the officials enumerated in §8-22-101, after deduction for the legally authorized expenses of the office, including, but not limited to, salaries of deputies and assistants, are not sufficient to pay the salary required by §8-24-102, then the remainder of such salary shall be paid out of the general funds of the county by warrant drawn on the general funds of the county in the hands of the trustee.