SERVER-15015 fix $min/$max handling for descending indices

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