Bugfix on getting related objects

When a related object not longer existed in the repository the repo
connection to get the target object was failing(obviously), to added an
exception watch there and a notice. Todo: fix, remove, unlink relations
when an object is getting deleted.