AP_OpticalFlow : prevent divide by zero