WebServer: Handled exception due to uninitialized variable