Fix NullPointerException in PartialDimExtractionFn

When the dimValue is null, PartialDimExtractionFn throws a NPE.