### 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
gin_helper::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardBuffer(args));
  writer.WriteText(text);
}
std::u16string Clipboard::ReadRTF(gin_helper::Arguments* args) {
  std::string data;
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  clipboard->ReadRTF(GetClipboardBuffer(args),  nullptr, &data);
  return base::UTF8ToUTF16(data);
}
void Clipboard::WriteRTF(const std::string& text, gin_helper::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardBuffer(args));
  writer.WriteRTF(text);
}
std::u16string Clipboard::ReadHTML(gin_helper::Arguments* args) {