correctly handle clearing proxy from config when passing to container(**config)