NMS-5764: Fixed NPE when mergeing thresholds