Fix for Kernel#instance_variable_defined? not working properly