MSW: fix assertion failure on Open() error paths (fix #3889)