Add error checking to the stitcher class.

Bit hackyish but OpenCV 2.x doesn't have nice error support for stitching yet