Fix a memory leak when the property name isn't a string