fixes #1862
Merge pull request #1909 from dotCMS/issue-1862-error-500-when-you-delete-the-CMS-anonymous

fixes #1862