Any person whose consent to a marriage intended to be solemnized on the authority of a certificate of a superintendent registrar is required under section three of this Act may forbid the issue of such a certificate by writing, at any time before the issue of the certificate, the word “forbidden” opposite to the entry of the notice of marriage in the marriage notice book, and by subscribing thereto his name and place of residence and the capacity, in relation to either of the persons to be married, in which he forbids the issue of the certificate; and where the issue of a certificate has been so forbidden, the notice of marriage and all proceedings thereon shall be void:
Provided that where, by virtue of paragraph (b) of the proviso to subsection (1) of the said section three, the court has consented to a marriage and the consent of the court has the same effect as if it had been given by a person whose consent has been refused, that person shall not be entitled to forbid the issue of a certificate for that marriage under this section, and the notice of marriage and the proceedings thereon shall not be void by virtue of this section.