fix for GRAILS-11813 "Unable to do grails run-app on 2.4.4 with mongodb 3.0.2 and latest gorm"
Respect grails.views.gsp.htmlcodec configuration

Commit 5037e65 intended for the grails.views.gsp.htmlcodec setting to take effect. This commit fixes the implementation so that setting is respected.

Issue: GRAILS-8978