Fix checking hostCanBeDown if hostname is not valid