Verify that hostname is not empty