Fix NullPointerException in PartialDimExtractionFn by explicity checking for dimValue == null, attempt 2