[ticket/12900] Fix potential avatar size box overflow

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