Fix segfault when Name = $HOST but $HOST is not set.