Fix crash in comparator when data is incomplete.