Section 40. A certificate of proof of the execution of a deed shall be endorsed upon it or annexed thereto by the clerk or register of the court or by the judge before whom such proof is made, and the certificate shall state whether the grantor was present at the hearing.