Fix another access of string array that may potentially be null.

Cherry pick from ag/1827242

Test: Manual
Bug: 34651942
Merged-In: I028773c9ea4334910ae89a820c5e36ae456fe4b2
Change-Id: I028773c9ea4334910ae89a820c5e36ae456fe4b2
1 file changed