XWIKI-8465: Unable to upload a new attachment using the "All pages" tab in the WYSIWYG editor
(cherry picked from commit 6aedf7a2f7780de3794fd784270099ce52286be7)