Electron API change for Tray resulting in Exception
<p>The following code </p>

<pre><code>let appTray = new Tray(null)
let contextMenu = null
app.on('ready', () =&gt; {
    contextMenu = Menu.buildFromTemplate(menuTemplate)
    appTray.setTitle(defaultTitle)
    appTray.setContextMenu(contextMenu)
})
</code></pre>

<p>gives out the following error : </p>

<pre><code>App threw an error during load
TypeError: Error processing argument at index 0, conversion failure from null
at TypeError (native)
at Object.&lt;anonymous&gt; (/Users/anmol.j/Personal/jam/index.js:23:15)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at loadApplicationPackage (/Users/anmol.j/Personal/jam/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:280:12)
at Object.&lt;anonymous&gt; (/Users/anmol.j/Personal/jam/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:322:5)
at Module._compile (module.js:556:32)
</code></pre>

<p>I am on MacOS Sierra 10.12.2</p>