[PATCH v6 5/7] mshtml: Remove the inner window ref from the doc only when it is actually unlinked.