window registry: unset the window handle when unregistering a tag

I wasn't able to unregister and then register a new window without this change