[ticket/12392] Fix avatar double assignment bug

PHPBB3-12392