6c65bee3f6
This was causing the adhoc task to fail with a nopermission error, when a user was unenrolled from a course before their assignment submission could be converted into a pdf. Comments from MDL-56810 indicate the correct approach is to not attempt a conversion in those cases.