GRAILS-11430 fix NPE when reloading the same scaffolded page several times