Guard against NPE in ResourcePool.FeatureTypeCache.dispose(...)