Fix #2167 on Windows

The origin fix checks if the filename is empty or `"blank"`. If so, on Windows, the filename is stripped from second letter of `location.pathname`. However in case of "blank" location, it results in setting `process.mainModule.filename` to `"lank"` instead of `"blank"`. This will cause the check fails in the next call.