UnknownHostException recovery attempt.

A small patch to handle the situation where a system lacks a defined hostname.