[[ Bug 13286 ]] Fix crash when getting windowid of closed browser