Fix accesses to undefined

Test: npm run build:all && npm run test:all
Change-Id: Ib9cf62f198d74edafb8ae7633caf6d9b24103758
1 file changed