Fix NPE on server startup.