SERVER-14738 Correctly determine if update w/ text index is in-place

(cherry picked from commit 1f00ffcd22e671f5adeece53c68b5e462ba01ec0)
Merge remote-tracking branch 'upstream/v2.6' into v2.6