Prevent NULL pointer fault in ape_connect_name_cb when name cannot be resolved to an IP address.