SERVER-14625 fix index bounds issue for negation inside elemMatch

(cherry picked from commit 42034d4c3713461658f00f952e13943770eb4620)