[BZ-1049367][BZ-1049571] invoke ReteWorkingMemory.evalQuery method when evaluating a query in rete mode