calibrateDebevec index fix (issue 3664)

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