fix(datepicker): properly discard null values (fixes #468)