WIKI-193 Fix bug js error on add related page