9c3710854b
This commit refactors how associated glossary is searched for and removes unnecessary DB queries. Also prevents from situations when the global glossary or course have been deleted