Fixed client crash bug if not logged in