Whenever there is a judgment of a competent tribunal declaring any election or appointment void or any office vacated, such judgment shall, if the vacancy is filled by appointment, the day after the time for taking an appeal has expired be certified by the clerk of such court or by the judge, if there is no clerk, to the appointing power.