Avoid initialising classes loaded while Groovydoc'ing.

GROOVY-7096