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