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