[relations] No crash when clicking remove with no selection
Fix #9224
[relations] Fix autogenerated feature forms