GROOVY-5910
Non found static type checking extensions throw unexplicit NPE