FACES-1674 Resource libraries/collections are not marked as being added to the <head>...</head> section of the portal page
(removed caching and added failsafe for JSP)