Added empty row/columns check to benchmark:Grid.onMeasure