Fix Object.hasProperty