i-bem__dom: remove DOM before destructing BEM internals

closes #540
Merge pull request #541 from bem/issues/540@v2

i-bem__dom: remove DOM before destructing BEM internals