[ticket/11602] Do not call localize_errors() if avatars are disabled

The avatar manager's method localize_errors() shouldn't be called if
avatars are disabled in the config.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-11602

PHPBB3-11602