fix NPE in aggregatrFirstTopnAlgo

pass correct query object while making resultBuilder