fixes #5092
Merge pull request #5160 from dotCMS/issue-5092-remote-publish-and-add-bundle-ajax-error

fixes #5092