yet another workaround for stupid bloody grails NPE (GRAILS-7471)