UP-3883:  StackOverflowError on Tomcat 7.0.47 whenever a session logs out