not null value was not displayed on initialize

My previous PR was creating a bug when setting a date value on the element at render. No date was displayed.

This PR also allow passing a null value to date prop and not have an "invalid date" on the datepicker.