fixes #3711 Error in console when I try to add a host manually