Fix isSynonym condition
Transient field is overriden by subclass

This is grails bug that apears againg https://jira.grails.org/browse/GRAILS-7748