Change returned value on invalid access from `null` to `undefined`