Fix out-of-bounds read in ApiList::Dump. am: 323e8c616e am: 78ae868e76
am: 6621245203

Change-Id: Iffba7aecb1844303bf05a2862d04dd1ac180df2a