GROOVY-6930: Fixed possible infinite wait during extension module scanning if an error occurs during contruction of the meta-model of a class
GROOVY-6903: Add null check in getProperties()