XWIKI-10998: After a user deletes his avatar, "User Avatar" is not correctly displayed
- The macro is now checking if the attachment file exists
- Added test and updated existing ones

(cherry picked from commit 98c5443e1d37e3ea9d5749ea27d39dbe2745c9bd)