Fixes a bug when first pair of tracks have no similarity measure