SERVER-10641 Stable floating-point comparison when validating min/maxDistance

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>