Fixed SURF histogram bug where if keypoints are not detected in an image, then there
is no histogram placed in database. This affected the index calculation when searching
the database because the index of the matching index might be less than the actual index
of the image name.