[asan] Fix one test on Android-L.

index() is deprecated.