Unset `windowId` should be `chrome.windows.WINDOW_ID_NONE` instead of `null`.
Unset
windowIdshould bechrome.windows.WINDOW_ID_NONEinstead ofnull.