Prevent crashes on undefined user IDs