In extractCourseIDFromProblemXEvent(): added protection against index error.