Fix conditional in Object#instance_variable_defined?

Also, this method is defined on Kernel (at least on 1.8.7+):

```
irb 1.8.7 > Object.instance_method(:instance_variable_defined?).owner
=> Kernel
```

Probably not an issue in practice though.