Prevent Ruby 1.8 error with rescue clause

In Ruby 1.8, the final line of the math_error_classes method would
return nil if Math::DomainError was not defined. That would cause the
rescue in distance_between_sphere to be effectively `rescue *nil`, which
produces "TypeError: class or module required for rescue clause".