https://github.com/dotCMS/dotCMS/issues/4756

Fixes host delete issues