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

Change-Id: I58bbecd884448ce26e1dcaa645c901b97cef2237