No act of a director, or of a meeting of directors attended by him, shall be invalid merely on the ground of any defect subsequently discovered in his appointment to such office: Provided that, as soon as any such defect has come to notice, the director shall not exercise the right of his office till the defect has been rectified. ...