Fix traceback with missing hostname key

There seems to be an issue with this key missing... even though it's kind of important to the output, I'm going to make it optional for now until we figure out what's going on.