Fix crash with date time picker in AddTask