MDL-35158 - Random Glossary block returns an error when you delete the linked glossary