No document which ought to bear a stamp under this Act shall be of any validity, unless and until it is properly stamped. But, if any such document is through mistake or inadvertence received, filed or used in any Court or office without being properly stamped, the presiding Judge or the head of the office, as the case may be, or, in the case ...