fixes #5131 Error in console copying host
Merge pull request #5161 from dotCMS/issue-5131-Error-in-console-copying-host

fixes #5131 Error in console copying host