XWIKI-11575: Improve the accuracy of the attachment content type detection