Fix ArrayObject::offsetExists for null value.

Closes #2181.