Changes in setActorByName, refs #7327

- Stop saving IO, relations and events inside the function
- Chech populated events and relations first
- Check relation and events for other IOs in the same repository after