[ticket/11923] Attempt to translate errors only if user can change avatar.

PHPBB3-11923
Merge remote-tracking branch 'prototech/ticket/11923' into develop

* prototech/ticket/11923:
  [ticket/11923] Attempt to translate errors only if user can change avatar.