GRAILS-11072 Fixed NullPointerException during unique constraint validation in case when interface is used as field type.