The undistort function will no longer accept empty frames, which was causing an assertion to fail in OpenCV.