Fix for "ModuleInfo can contain itself in dependencies by setting it via #setDependencies."