The proxy listener can be NULL, so check for that, too