fixes #5498 Error adding categories to a content
Merge pull request #5517 from dotCMS/issue-5498-Error-adding-categories-to-a-content

fixes #5498 Error adding categories to a content