WIKI-830: Alert message is posted when adding Wiki portlet to a site

Fix description:
- Problem: Side effect from WIKI-380
- Fix :
-- Remove unused added block script code in UIWikiPortlet.gtmpl
-- Add condition to get the function fixLinksTargetAttribute in UIWikiContentDisplay.gtmpl