[ClassLoader] Fix undefined index in ClassCollectionLoader