[rql rewriting] handle case where we want to insert snippet on a variable that has previously been moved to a subquery
# pylint: disable-msg=W0614,W0401fromwarningsimportwarnwarn('moved to cubicweb.dataimport',DeprecationWarning,stacklevel=2)fromcubicweb.dataimportimport*