cv::findContours: Sanity check of output data structure

With reference to the issue reported in http://code.opencv.org/issues/3606 it seems that it would be good to add in cv::findContours() explicit sanity check of output data structure.