GG-8581 - classes are not cached for non-app class loaders
Minor fix.