fixes #23232 - fix error when domain not in taxonomy
This ensures that if domain_id is set, but domain not found (for example when domain is in another taxonomy), the shortname still removes the domain from the host's FQDN.
Related issues
Bug #23232: Foreman should validate host associations are in the host's taxonomies
fixes #23232 - fix error when domain not in taxonomy
This ensures that if domain_id is set, but domain not found (for example
when domain is in another taxonomy), the shortname still removes the
domain from the host's FQDN.