fix for GRAILS-11281 "Controller can't be used as error handler"