Handle allocation failure in AddPreResolvedStringsArray

Might fail on 32 bits if the address space is fragmented.

Regression test is infeasible to add.

Bug: 134652205
Test: test-art-host

(cherry picked from commit 4bdafc488c19f0bd1f8cc711b7db1ea9c68e5cd3)

Merged-In: I8a254a27275be4e0ff39fdb72715771f4f77cf36
Change-Id: I8a254a27275be4e0ff39fdb72715771f4f77cf36
3 files changed