Fix handling of array expressions with omitted elements.

Array expressions with omitted elements (i.e., something like `[23, , 42]`) are represented as `ArrayExpression` nodes with `null` children in Esprima. This PR adds some extra nullness checks to handle this case.