fix for GRAILS-10308 "joinTable: with name: now not working after 2.1.5 upgrade to 2.2.4"