fixes #4791
#4791
Merge pull request #4795 from dotCMS/issue-4791-folder-with-bad-legacy-file-fails-to-delete

Issue 4791 folder with bad legacy file fails to delete