Add a null check when starting server on json loading