Improves WebPageContext#getDelegate to be able to use both HttpServletResponse#getWriter and #getOutputStream without throwing an IllegalStateException.