Fixed NPE in the web UI.