SERVER-7511: fix update with positional mod or index offset
SERVER-7511: fix backport for 2.2