Don't run edgefriction check when speed is very small

Previously when the speed is zero, division by zero will occur and the
subsequent FP mess will reduce the frame rate by half.