Fix error page related buffering/flushing problems
broke after fixing GRAILS-6650