Fixed crash of ranking on anonymous user.