Steps to reproduce:
- As admin create a lesson selecting the default lesson settings.
- Add an essay question.
- Enrol a student.
- Login as the student.
- Attempt the essay question.
- As admin unenrol the student from the course.
- View the Lesson essay questions to be graded
Expected result: the unenroled sutdent's essay should not appear
Actual result: the student still appears in "Grade essay"