Fixed segfault when printing nonexistent IP address