gopnik5

Results 2 issues of gopnik5

Fixes the issue with trying to set an out of bounds element in newStage array. The exception happens sometimes when a piece gets to the bottom.

Issue #8781: fix(query-core): add check to #combineResult for input parameter length to decide whether to return optimistic(old) or updated results

package: query-core