TMDM-7623: when to edit one element by choosing reference entity, do not allow choose entity that the element belongs to.