getRelationsByRelationType crashes with non existing relation

Description

Het getRelationsByRelationType function crashes when a document used in the relation does not exists any more

Technical tasks

None

Deployment actions

None

Assignee

Unassigned

External issue ID

None

Client

None

Min. hours

None

Dev hour estimate

None

Fix versions

Configure