GROOVY-6395: groovysh fix map properties completion vulnerability

just a small fix for that issue in #308