throw exception when calling getProperties from item context.

Configure closures get added to Item.withXmlActions, which is a property. If a withXmlActions closure contains the getProperties() method, there is a stack overflow. Overriding the getProperties method fixes the issue.