GRAILS-9412 Fix issue where calling validate() after a domain class is
 reloaded with hibernate.reload = false causes NPE
- https://github.com/grails/grails-core/pull/336 by @longwa
Fix for GRAILS-10707: Grails reloading fails when changing enum