title: Unable to get property 'querySelector' of undefined or null reference
body: <p>I'm facing this error:
  JavaScript runtime error: Unable to get property 'querySelector' of undefined or null reference</p>
  
  <p>Im trying to make a contact pick on Cordova. This works good on iOS and Android. On windows phone, the apps runs but then crashes with this error. Here is where it crashes (var listeningElement). I searched a lot but can't get a solution. Anyone could help me to fix it? thanks: </p>
  
  <pre><code>receivedEvent: function(id) {
      var parentElement = document.getElementById(id);
      var listeningElement = parentElement.querySelector('.listening');
      var receivedElement = parentElement.querySelector('.received');
  
      listeningElement.setAttribute('style', 'display:none;');
      receivedElement.setAttribute('style', 'display:block;');
  
      console.log('Received Event: ' + id);
  }
  </code></pre>