Fix unmounting components mounted into doc element

If we are to unmount a component mounted into a document element we should
unmount it from document.documentElement and not from document.firstChild which
is a doctype element in this specific case.
Merge pull request #423 from andreypopp/master

Re-rendering components into a document leaks components