Fix traceback in salt.utils.network.get_fqhostname

This traceback occurs when the lookup fails in some way, raising an
exception.

This code is only in develop and does not need to be cherrypicked.