* Output of `node_modules/.bin/electron --version`: v4.0.0
* Operating System (Platform and Version): macOS 10.14.2

* Output of `node_modules/.bin/electron --version` on last known working Electron version (if applicable): 2.0.7

### Expected behavior

I should be able to call `app.setAccessibilitySupportEnabled(true)` during initialization, and the application should start and stay open.

### Actual behavior

The application starts and exits immediately if `app.setAccessibilitySupportEnabled(true)` is called during initialization. Same for passing in `false`.

### How to reproduce

Here is a simple project that shows this error. The application behaves as expected (does not exit immediately) when this line is commented out:
https://github.com/marisademeglio/electron4-setA11yTreeEnabled/blob/master/src/main/main.js#L27

  $ git clone https://github.com/marisademeglio/electron4-setA11yTreeEnabled.git
  $ yarn install
  $ yarn start

atom/browser/api/atom_api_app.cc
const std::string& info_type) {
  auto* const gpu_data_manager = content::GpuDataManagerImpl::GetInstance();
  scoped_refptr<util::Promise> promise = new util::Promise(isolate);
  if (info_type != "basic" && info_type != "complete") {
    promise->RejectWithErrorMessage(
        "Invalid info type. Use 'basic' or 'complete'");
    return promise->GetHandle();
  }
  std::string reason;
  if (!gpu_data_manager->GpuAccessAllowed(&reason)) {
    promise->RejectWithErrorMessage("GPU access not allowed. Reason: " +
                                    reason);
    return promise->GetHandle();
  }
  auto* const info_mgr = GPUInfoManager::GetInstance();
  if (info_type == "complete") {
#if defined(OS_WIN) || defined(OS_MACOSX)
    info_mgr->FetchCompleteInfo(promise);
#else
    info_mgr->FetchBasicInfo(promise);
#endif
  } else  {
    info_mgr->FetchBasicInfo(promise);
  }
  return promise->GetHandle();
}
static void RemoveNoSandboxSwitch(base::CommandLine* command_line) {