Fix traceback in salt.utils.network.get_fqhostname

This traceback occurs when the lookup fails in some way, raising an
exception.
Merge pull request #11674 from terminalmage/fix-get_fqhostname

Fix traceback in salt.utils.network.get_fqhostname