Fix get_class_boundaries returning None for fractions outside of the range [0.0, 1.0]

While it should return the "Unknown" class.