fixes #1947
Merge pull request #1960 from dotCMS/issue-1947-deleting-host-throws-an-error

fixes #1947