Whenever a judgment is rendered on a registered document, the judgment or award shall mention this and state the amount of duty paid, the date of payment and the name of the public service where it was paid; in the event of omission and in the case of a deed subject to formality within a specified period, the competent public accounting officer shall demand the fee if the deed has not been registered in his department, unless restitution is made, within the prescribed period, if it is subsequently shown that the deed on which the judgment was given has been registered.