fixes #5679
Merge pull request #5693 from dotCMS/issue-5679-500-error-when-adding-objets-to-bundle

Issue 5679 500 error when adding objets to bundle