A candidate nominated for or elected to an office, whose nomination or election has been annulled and set aside for any reason mentioned in this title, shall not, during the period fixed by law as the term of such office, be appointed to fill any vacancy which may occur in such office; but this provision shall not apply to appointments to any office the qualifications for which are prescribed by the constitution of this state or of the United States.
N.J.S. § 19:3-20