With an invalid due_date param, #by_due_date would return nil and so further methods would blow up. We should return an empty collection for that.
due_date
#by_due_date
nil
For gitlab-com/gl-infra/scalability#611 (closed).