Fix issue on IE occuring when nodes are removed from DOM.