Fix incorrect usage of sparse array

- When iterating, need to get value at the index not key by the index
  (the key is the display id)

Bug: 181925053
Test: atest SystemUITests
Change-Id: Ifdc9d9a2da08ff47d39b19ba0e0e4b80ebad42a0
1 file changed