Comparators that can handle null values.