Fix passing Omeka api service to the generic adapter