Electors are free agents. They can vote for whoever they wish when the electoral college meets in the state capitals in December. They do not have to vote for official candidates. The House of Rep., however, could consider only official electoral-vote getters from the top three, if it were to choose a president.
See the first part of Post #495 concerning “faithless” electors.