updated to handle services with objectId fields other than 'OBJECTID' (using query.objectIds will not return any features for services that do not have an explicit 'OBJECTID' field)