Fix NullPointerException in PartialDimExtractionFn

When the dimValue is null, PartialDimExtractionFn throws a NPE.
Internally Druid treats nulls and empty strings as similar values. So I think one workaround here is to  do
dimValue == null ? "" : dimValue

Druid's handling of nulls and empty strings could definitely be better though.