If, at any time, there shall be no election, of Governor, Lieutenant-Governor, or Treasurer, of the State, the Senate and House of Representatives shall by a joint ballot, elect to fill the office, not filled as aforesaid, one of the three candidates for such office (if there be so many) for whom the greatest number of votes shall have been returned.