fe_distance_functions(): fix crashes / incorrect behaviour when running the CITE 1.0 test suite on distance functions
fe_distance_functions(): fix crashes / incorrect behaviour when running the CITE 1.0 test suite on distance functions

mapserver/tinyows,mapserver/tinyows,mapserver/tinyows