fix issue where host hasn't correctly set fqdn

When submitting facts to the foreman API, if the facts yaml
doesn't have a FQDN, the lowercasing of the FQDN will fail