SERVER-14706 SERVER-14706 negated $type predicates should not use an index

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