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

(cherry picked from commit b365799cde89ffcb255d1950057298f6f724d0c8)