Fix case when due_date doesn't assigned for task.

Task don't have presence validation for due_date so this can happen.