Fix omitempty issue for ATS config metadata generation (#4306) (#4313)

If empty, the 'url' and 'apiUri' fields should be omitted from the
marshalled JSON, which is how Perl handled it.

(cherry picked from commit 5f3c3f26f1fe8309bf83e8397937ffc442cf1b21)
2 files changed