fix issue when dueDate in the query results is empty