ModuleManager::assertCurrent() now returns a weak_ptr.