§ 161. Amount spent for services of temporary stenographer to be deducted from salary of official stenographer. If the official stenographer of the judicial district in which such term shall be held shall have been duly assigned to attend such term, and it does not appear to the satisfaction of the justice that the failure to attend was excusable, the justice may cause an order of the court to be entered at such term, that the portion of the sum so paid by the county treasurer, which was allowed for the per diem compensation for the services of the stenographer employed at such term, shall be deducted from the salary of the official stenographer who shall have been so assigned to attend such term, and the clerk of such county shall transmit to the department of taxation and finance a certified copy of such order, and such department shall deduct such amount from the salary of such official stenographer and pay the same to the treasurer of said county.