fixes #6531
Merge pull request #6547 from dotCMS/issue-6531-error-refreshing-frontend-after-deleting-folder

fixes #6531