(maint) Fix resolution of fqdn fact.

This pull requests fixes the issue that we should still set the fqdn fact to the hostname if we fail to resolve it.