31. If the court annuls the election of the mayor and declares elected to that office a person already declared elected as a councillor under subsection 2 of section 30, it must also declare elected to the office of councillor the co-candidate of that person, in replacement of the latter, if that co-candidate is still qualified for election, failing which the office is vacant.