GRAILS-8142 - the render method should respect the plugin attribute

Relevant functional tests: https://github.com/grails/grails-functional-tests/commit/69788d350c61f8ceb207044b0e6829617822cae8