resolve crash when dueDate is of class NSNull