SERVER-15403 query planner should not error if $min and $max are equal

(cherry picked from commit 88e79e1b476996bab2582009f4ab5ff7c9fad9f4)