fixed showing of tasks based on note_type not if due date is nil