Load and save CIB outside of resource_clone function
Check for invalid id of resource, group, property, constraint and rule
Fixed tracebacks when resource agent provides an invalid metadata xml