stitching: fix range check in DpSeamFinder::computeCosts
stitching: fix range check in DpSeamFinder::computeCosts

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv