Null check for selected date