[Urlfetch] Make it compatible with v0.12.
[Elasticsearch] Make it compatible with v0.12.