Fixed compilation error on assignment of NULL to cv::Ptr