eliminate queries in ErrorPageHandlerImpl. fixes #64