Does `Mat` constructor really accept `NULL` dataPtr? I believe it should raise an error in this case

What is about this?
```
if (!tmpCorners.empty())
{
    Mat mcorners(1, (int)total, CV_32FC2, &tmpCorners[0]);
    corners.colRange(0, (int)total).copyTo(mcorners);
}
```