Fixes NPE in BuildDebugServlet when an empty resource directory is found.