Fix outdated context manager.

Update SelectAttributesDomainContextHandlerhas to work with nested SettingProviders.