[ticket/13234-2] Correctly verify that user_id is set in user data array

PHPBB3-13234-2