title: Failed: null value in entry: name=null error while switching Popup window
body: <p>I am trying to switch popup window of my AngularJS application. Following is my code:</p>
  
  <pre><code>    browser.ignoreSynchronization = true;
      browser.getAllWindowHandles().then(function (handles) {
          browser.switchTo().window(handles[1]);
  
      });
  </code></pre>
  
  <p>Getting following error:</p>
  
  <pre><code>Failed: null value in entry: name=null
  Stack:
  UnknownError: null value in entry: name=null
  </code></pre>