### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/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

15.3.0

### What operating system are you using?

macOS

### Operating System Version

10.14

### What arch are you using?

x64

### Last Known Working Electron version

13.0.0

### Expected Behavior

This line of code shouldn't crash the process:

```js
require ( 'electron' ).clipboard.read ( 'NSFilenamesPboardType' );
```

### Actual Behavior

It crashes the process.

### Testcase Gist URL

https://gist.github.com/995b1899ad086f727ee8698a246df3a3

### Additional Information

I think this is a fairly important issue, not only it crashes the process while it was working fine in Electron v13, but that's also the only way that I know of to get the file path of copied files under macOS, so not having that working cripples apps that use that.

/cc @codebytere as it may be related to what you might be working at the moment.
shell/common/api/electron_api_clipboard.cc
std::u16string data;
  std::u16string html;
  std::string url;
  uint32_t start;
  uint32_t end;
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  clipboard->ReadHTML(GetClipboardBuffer(args),  nullptr, &html,
                      &url, &start, &end);
  data = html.substr(start, end - start);
  return data;
}
void Clipboard::WriteHTML(const std::u16string& html,
                          gin_helper::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardBuffer(args));
  writer.WriteHTML(html, std::string());
}
v8::Local<v8::Value> Clipboard::ReadBookmark(gin_helper::Arguments* args) {
  std::u16string title;
  std::string url;
  gin_helper::Dictionary dict =
      gin_helper::Dictionary::CreateEmpty(args->isolate());
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  clipboard->ReadBookmark( nullptr, &title, &url);
  dict.Set("title", title);
  dict.Set("url", url);
  return dict.GetHandle();
}
void Clipboard::WriteBookmark(const std::u16string& title,