Define `undefined` to explicitly be undefined in case an RP or IdP has accidentally redefined undefined.

@seanmonstar and @callahad - mind reviewing?

fixes #3598