Fix division by zero problem in numeric comparer.