Prevent NULL pointer fault when domain name cannot be resolved

IP pointer is NULL when Ape.sockClient is given a hostname that cannot be resolved into an IP address.