SASHIMI-370 - Reapplied the fix to LcsCollectionComparator