Fix PHP notices complaining about missing array indices

Bug: 71793
Change-Id: Iaa1b01d9a1d4adde637676226c42f1471112db79