Fixes weird disappearing content error caused by calling response.getWriter twice.