Fix error in which PieChart throws an error when destroyed

Fixes https://github.com/yui/yui3/issues/1283