Fix MessagesFragment and Activity to properly restore when rotated.