MYFACES-2822 Cannot get factory when tomcat is shutdown (check if myfaces was initialized before publish application destroy event)