Fixed crash when hiding and showing the main chat without a network connection.