fixes #4474 Two errors in console when you try to add a host
Merge pull request #4609 from dotCMS/issue-4474-two-errors-in-console-when-you-try-to-add-a-host

fixes #4474 Two errors in console when you try to add a host