crm_resource runs the scheduler to find resources, which upgrades the CIB to the latest schema. With recent changes, this means master elements are converted to clone elements. For options that modify the CIB, this means that crm_resource will try to modify the clone resource, which does not exist from the CIB's point of view.
crm_resource needs to use the original, non-upgraded resource configuration when making modifications.