Fix crashing in Messages view

Fixes crashing when user tries to open Messages view before initial
connection.