Since we need to check modinfo anyway, do that as soon as possible so we can get a performance win if there are no glossaries in the course.
This should have when there are no glossaries in course or when there are no linked entries in existing glossaries.