GROOVY-6903: Add null check in getProperties()