Avoid initialising classes loaded while Groovydoc'ing.

GROOVY-7096
Merge pull request #523 from alkemist/master

GROOVY-7096 - Avoid initialising classes loaded while Groovydoc'ing.