fix null handling in new InputFieldComparator