IE8 - TypeError: 'pick' is null or not an object

I had a strange issue in IE8 where `value` and `type` were both `undefined`. That caused a crash on `value.pick`. I'm now checking for `undefined` values and return the default.

Not sure if it's the right place for that fix but it works.