XWIKI-9030: Unable to add a category or a subcategory when editing a blog post

Fixed.(cherry picked from commit 826c3c5b076da5044000507c20e735eefa24ae0d)