Fix LookupServlet bug; handle external DTD errors