Fix and test for GRAILS-10783: Nested/merged g:applyLayout is broken
with grails.views.gsp.sitemesh.preprocess=false setting