Fixed a NPE on server startup