fixes #4797
Merge pull request #4799 from dotCMS/issue-4797-deleting-folder-still-throws-error

fixes #4797