fixes #2045
Merge pull request #2048 from dotCMS/issue-2045-bundle-fails-to-publish

fixes #2045