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