Fix for GRAILS-6650: problem with response being flushed when an error occurs rending a GSP