Skip missing array elements in hasSideEffect()

Skip missing array elements in hasSideEffect() to avoid it from crashing.