fixed error when date picker is edited to null