[PATCH v2 4/6] mshtml: Remove the inner window ref from the doc only when it is actually unlinked.