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