PIM-3371 : fix validator to avoid validation when metric data is null