[MODULES-158] Correctly iterate the resources of the class loader itself