api_core: Fix handling of gapic metadata when specified as 'None'. (#4701)

2 files changed