Allow define-variables to be undefined

I was using the new define-option with a value from my config. This value is either set or undefined depending on the process. I expected that webpack includes the value from the config and all if-statements would evaluate to false if the value is undefined. But instead of that webpack crashes because it tries to call `toString()` on `undefined`.

So I made the type check more accurate imho.