[JBIDE-15812] fixed NPE when restarting app from server adapter