* 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.h
const GURL& source_origin,
                       content::mojom::WindowContainerType container_type,
                       const GURL& target_url,
                       const content::Referrer& referrer,
                       const std::string& frame_name,
                       WindowOpenDisposition disposition,
                       const blink::mojom::WindowFeatures& features,
                       const std::vector<std::string>& additional_features,
                       const scoped_refptr<network::ResourceRequestBody>& body,
                       bool user_gesture,
                       bool opener_suppressed,
                       bool* no_javascript_access) override;
  
  void OnGpuProcessCrashed(base::TerminationStatus status) override;
  
  void BrowserChildProcessLaunchedAndConnected(
      const content::ChildProcessData& data) override;
  void BrowserChildProcessHostDisconnected(
      const content::ChildProcessData& data) override;
  void BrowserChildProcessCrashed(
      const content::ChildProcessData& data,
      const content::ChildProcessTerminationInfo& info) override;
  void BrowserChildProcessKilled(
      const content::ChildProcessData& data,
      const content::ChildProcessTerminationInfo& info) override;
 private:
  void SetAppPath(const base::FilePath& app_path);
  void ChildProcessLaunched(int process_type, base::ProcessHandle handle);
  void ChildProcessDisconnected(base::ProcessId pid);