curl_xml plugin: Fix potential dereference of NULL pointer.