title: navigator.network.connection.type returns null instead of Connection.NONE
body: <p>For some reason the Phonegap connection API returns <code>null</code></p>
  
  <pre><code>function checkConnection() {
      var networkState = navigator.network.connection.type;
      alert(networkState);
      var states = {};
      states[Connection.UNKNOWN]  = 'Unknown connection';
      states[Connection.ETHERNET] = 'Ethernet connection';
      states[Connection.WIFI]     = 'WiFi connection';
      states[Connection.CELL_2G]  = 'Cell 2G connection';
      states[Connection.CELL_3G]  = 'Cell 3G connection';
      states[Connection.CELL_4G]  = 'Cell 4G connection';
      states[Connection.NONE]     = 'No network connection';
  
      document.getElementById('connections').innerHTML = states[networkState];
  }
  </code></pre>
  
  <p>I run this function from the <code>onDeviceReady</code> function which is called when the device is running.</p>
  
  <p>When everything is turned off I get <code>null</code>. Shouldn't I get the <code>Connection.NONE</code> back instead of a <code>null</code>? It's really annoying since I can't check whether the phone has connection or not. It works fine when Wifi is turned on though.</p>