[relations] Support for .ui file dialogs
AttributeForm: Create a dummy button box for intercepting ok clicks
when the ok button is hidden and the accept was actually triggered
by something else. This allows to continue using custom validation
logic without changes.
Fixes #8885
[relations] When loading invalid relations from a project, tag them as such