fix Error tooltip not displayed in a datepicker

It happens when the datepicker is not initialized yet and an invalid value is entered : null is compared to undefined, resetting the DP state
I would use `normalizeUndefined` from http://ariatemplates.com/aria/guide/apps/apidocs/#aria.utils.Type if it existed (see other comment in this PR review).