title: Cannot read property '0' of undefined
body: <p>I'm getting a weird undefined error when I'm triying to use pkgcloud and also the property <code>length</code> is undefined :</p>
  
  <pre><code>var pkgcloud = require('pkgcloud');
  var Q = require('q');
  router.get('/', function(req, res, next) {
  
  var conn = pkgcloud.compute.createClient({
      provider: 'openstack', // required
      username: 'demo', // required
      password: 'azerty', // required
      authUrl: 'http://192.168.0.242:5000' ,
      region_name :'RegionOne'// required
  });
  console.log(conn);
  </code></pre>
  
  <p>At this stage I can visualize the different methods of the object <code>conn</code>, but the error is generated within the for loop:</p>
  
  <pre><code>var d = Q.defer();
  conn.getImages(function(err, images) {
  
      for (var i=0; i&lt;images.length; i++) {
          console.log("id: " + images[i].id);
          console.log("name: " + images[i].name);
          console.log("created: " + images[i].created);
          console.log("updated: " + images[i].updated);
          console.log("status: " + images[i].status + "\n");
      }
      if (err) {
          console.log("erreur");
          d.reject(err);
      } else {
          console.log("juste");
          d.resolve();
      }
  });
    res.render('index', { title: 'Express' });
  });
  </code></pre>