Fix cvCalcOpticalFlow when the status parameter is NULL

issue 2526
Merge pull request #287 from taka-no-me:fix_cvCalcOpticalFlow_2526