[DO NOT MERGE]Fix IndexOutOfBoundsException for TDA stack

Before, it used DC.getStackCount() to loop TDA stacks, which caused
issue when there are multiple TDAs.

Bug: 173823058
Test: manual
Change-Id: I60bcf72c37b2f90fc655566022a107a75b49966a
1 file changed