SERVER-7951 fix replacement-style updates with hashed shard key
Merge branch 'SERVER-7951' closes #347