(WIP) Deactivate add relation buttons with empty inputs.

https://www.openproject.org/work_packages/15211