[streaming] batchReduce reduceLastBatch bugfix for incomplete batch