host: Properly handle NULL in host_create_from_string[_and_family]