Previously would crash when no user was logged in and messages were loaded