- Prevent NPE when server is empty

Sorry for the code style!