Fixing bug where FilteredClassLoader was doing the same check for resources and classes