fixes #4248
Merge pull request #4259 from dotCMS/issue-deleting-a-folder-that-is-part-of-bundle-makes-push-fail

fixes #4248