Fix Add Related Agent button submitting form rather than add a new subrecord (Firefox);
Merge remote-tracking branch 'origin/pr/546'