Fix global variable is referenced before assignment error in api.bzl
Change-Id: Id8ee934ba34d9bcd93661cd2222f8e57ba626cbf
Bug: 273315818
Test: b build here and on udc-dev in "final android release" mode
The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.