GROOVY-7216: Add check to see if the key is in the original map

https://jira.codehaus.org/browse/GROOVY-7216