Fix case when due_date doesn't assigned for task.