Fix destroyable

See https://bugs.dojotoolkit.org/ticket/17763