[ticket/13138] Only use cookie data when we do not force a user_id

https://tracker.phpbb.com/browse/PHPBB3-13138