Make ArrayObject::offsetExists return true for keys with null values

Fixes #2181.