SPR-11627 fix

GroovyDynamicElementReader tries to read a Groovy script as XML and fails - SPR-11627