Fixed error in case corners not found
Merge pull request #2562 from akarsakov:gftt_fix