NMS-6836: Add null protection in EventLabelComparator