Deactivate add relation buttons with empty inputs.

https://www.openproject.org/work_packages/15211
I guess for the parent relation we want to allow setting it to ``null``, right?