Fix adding composite resources where the resource isn't defined.