[TabbedWebView] Make sure to not crash with invalid m_window pointer

This is followup to properly handle detached WebTab (outside
BrowserWindow)

[ci skip]