If all the subscribing witnesses shall be dead, or out of the state, such death or absence is first to be proved, and then the execution of the deed may be proved before such officer by proving the handwriting of the grantor and of any subscribing witness to such deed.