Added handling of camera parameters estimation errors (#3122)

http://code.opencv.org/issues/3122