GROOVY-6047: NPE in type checker using an extension

Conflicts:
	src/test/groovy/transform/stc/TypeCheckingExtensionsTest.groovy