Introduce JSObject::getIfPropertyExists helper