Set client_resource_id only if it exists