fix errors in destroy() in quirks mode and/or silverlight !strict