SPR-11627 fix

GroovyDynamicElementReader tries to read a Groovy script as XML and fails https://jira.spring.io/browse/SPR-11627