NMS-6836: Add null protection in EventLabelComparator
[bamboo] Automated branch merge (from 1.12:96db1cb80a1e24088fc33b2d602828efb69762c1)