This article does not apply to any party to a contest or proceeding who holds the certificate of election or commission of office and discharges the duties of the office. No certification by the clerk need be made. Such party shall receive the salary of the office the same as if no contest or proceeding was pending.