Fix user ID lookup for guests.