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

Change-Id: Idd92af2cf8023a610cdcaa798a7490c839dd81a5