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