Fix cvCalcOpticalFlow when the status parameter is NULL

issue 2526