OVT-7983: Modal window closes even when there are no changes to relations