When the person whose election is contested is found to have received the highest number of legal votes, but the election is declared null by reason of legal disqualification on his part, or for other causes, the person receiving the next highest number of votes shall not be declared elected, but the election shall be declared void.
10 ILCS 5/23-29