Prevent calcOpticalFlowPyrLK from crashing on empty input

Currently, a call to calcOpticalFlowPyrLK() with prevpts = [] leads to an assertion failure in OpenCV, which terminates MATLAB. To me the preferable solution is not to call cv::calcOpticalFlowPyrLK() and to return an empty result.