WIKI-689: Exception when adding wiki portlet into a new site