FACES-1496 Memory leak with Mojarra and JSF2 resources
(somehow this didn't get backported from 3.1.x prior to the 3.1.2-ga3 release)