fix possible CCE when trying to cast ExporterProxy to QueryExporter