Handle allocation failure in AddPreResolvedStringsArray
am: 3ffb5b1576

Change-Id: Ief69c6a67ecb0f905cde1bde1dec21f3d1500b40