Fixes #4626 Prevent warning on screen when user set valid host to a URL instead of hostname
Minor