Handle allocation failure in AddPreResolvedStringsArray am: 3ffb5b1576
am: bf0003b8c6

Change-Id: I5f163280362e9127bc32cb3349aaa6db7bdd78d2