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

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