Fix crash on startup if not logged in