GROOVY-6930: Fixed possible infinite wait during extension module scanning if an error occurs during contruction of the meta-model of a class