fixes #5964 errors in console when copying host
Merge pull request #6157 from dotCMS/issue-5964-errors-in-console-when-copying-host

fixes #5964 errors in console when copying host