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