Fix glitch where the MessagesFragment crashed.