check of keypoint index range in drawMatches

some useful asserts (without them a user can get segfault)