Cleaned up Editor._set_target_attribute().

Works better for tempo inventories.