[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19214732

Bug: 237288416
Bug: 237717857
Change-Id: I266f57c1dc80b3787ce1f9c40c82d8daaff6b9e4
Merged-In: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9