Prevent creation of relationship with same entity as existing relationship #521