FACES-2007 PrimeFaces 5.1 portlet incompatibility

PrimeFaces 5.1 portlet incompatibility with getFacesResource function in primefaces.js