Changed the load order of Jetty and managed modules
- added a check for a null factory in the EntityManagerProxyFactory