This commit fixes a crash for cases like:
%0 = tensor.extract_slice %arg0[0, 0] [%c1, %size] [1, 1] : tensor<?x?xf32> to tensor<?x?xf32>
Previous the first size-1 dimension will be dropped, thus causing
an mismatch in tensor rank.
Depends On D117020