related links - whoops

Absence of $f (null instead) seems not to affect to related add, but it was originally there. Forgotten to restore it after one test with no result.
Merge pull request #1037 from jaanusnurmoja/related_data_links_form_view

related links J2.5/3.0 - whoops