Don't crash in perfdiag when nslookup is missing or gethostbyname fails.