fix exceptions being thrown when loading page when not logged in - still throws exception when non-logged-in user sends message