Solves two NPEs. When dealing with unique values, getValueReference is
null in RecodedLegend instances. field() should be called instead.