### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

13.1.6

### What operating system are you using?

Ubuntu

### Operating System Version

Ubuntu 21.04

### What arch are you using?

x64

### Last Known Working Electron version

None. Electron 10, 11, 12, 14 are all affected, too.

### Expected Behavior

Nothing should happen

### Actual Behavior

1. Have a page with a webview with a link which includes a `#` (e.g. `<a href="#">Test link</a>`)
2. Zoom the page in via `webContents.setZoomFactor(1.1)`
3. Reset the zoom via `webContents.setZoomFactor(1.0)`
4. Click the link

The page itself stays normal while the webview gets all the way zoomed in and its `zoomFactor` is set to `NaN`.

### Testcase Gist URL

https://gist.github.com/ffflorian/2c60315bfafed606723887a7b2f21010

### Additional Information

![image](https://user-images.githubusercontent.com/5497598/125257302-93d8e300-e2fd-11eb-9a1a-a0a9fbdca258.png)
shell/browser/web_view_guest_delegate.cc
if (embedder_zoom_controller_) {
    embedder_zoom_controller_->RemoveObserver(this);
    embedder_zoom_controller_ = nullptr;
  }
}
content::WebContents* WebViewGuestDelegate::CreateNewGuestWindow(
    const content::WebContents::CreateParams& create_params) {
  
  
  content::WebContents::CreateParams guest_params(create_params);
  guest_params.context = embedder_web_contents_->GetNativeView();
  std::unique_ptr<content::WebContents> guest_contents =
      content::WebContents::Create(guest_params);
  if (!create_params.opener_suppressed) {
    auto* guest_contents_impl =
        static_cast<content::WebContentsImpl*>(guest_contents.release());
    auto* new_guest_view = guest_contents_impl->GetView();
    content::RenderWidgetHostView* widget_view =
        new_guest_view->CreateViewForWidget(
            guest_contents_impl->GetRenderViewHost()->GetWidget());
    if (!create_params.initially_hidden)
      widget_view->Show();
    return guest_contents_impl;
  }
  return guest_contents.release();
}
}