When spawning a resource from an accession, clear the IDs of any rights ...

...statement to avoid integrity constraint issues.