I picked and racked a tile from the wrong end of the pushed-out wall. What happens now?

Unfortunately, your hand would be declared dead by the other players at the table and the game would continue. If more than one player has made this mistake, the game ceases and is started over.