Fixed a bug where HttpServer would throw on server restart.