Torbutton writes cookies to protected-tor.xml file

Torbutton writes new cookies to file if tried to remove cookies by torbutton's cookie manager protector. It doesn't show any cookies in the manager. Console output:

Error: TypeError: can't wrap XML objects
Source File: chrome://torbutton/content/torcookie.js
Line: 170