Fixes possible NPE in BuildDebugServlet.