prevent NPE when server is in offline mode