Where any fee or deposit is payable in respect of any act, or any disbursements is necessary in doing the same, the officer charged with doing the act shall not be obliged to do it until the fee, deposit or the amount of the disbursements has been paid.