bug #2 Fixes rendering with packages listing no source (iltar)
bug #2 Fixes rendering with packages listing no source (iltar)

This PR was merged into the master branch.

Discussion
----------

Fixes rendering with packages listing no source

This PR fixes the issue I received from my composer.lock: `Impossible to access an attribute ("url") on a string variable ("").` This issue is caused by a custom packagist with some form of a meta/virtual package to retrieve things like nodejs and yarn:

![image](https://cloud.githubusercontent.com/assets/1754678/22243679/a5dbf2d4-e228-11e6-8744-bba27320d6b9.png)

```
array(4) {
  'name' =>
  string(13) "nodejs/darwin"
  'version' =>
  string(6) "v7.4.0"
  'dist' =>
  array(4) {
    'type' =>
    string(3) "tar"
    'url' =>
    string(60) "https://nodejs.org/dist/v7.4.0/node-v7.4.0-darwin-x64.tar.gz"
    'reference' =>
    NULL
    'shasum' =>
    NULL
  }
  'type' =>
  string(7) "library"
}
/home/ivanderberg/projects/mijn/www/vendor/easycorp/easy-doc-bundle/src/Command/DocCommand.php:114:
array(4) {
  'name' =>
  string(12) "nodejs/linux"
  'version' =>
  string(6) "v7.4.0"
  'dist' =>
  array(4) {
    'type' =>
    string(3) "tar"
    'url' =>
    string(59) "https://nodejs.org/dist/v7.4.0/node-v7.4.0-linux-x64.tar.gz"
    'reference' =>
    NULL
    'shasum' =>
    NULL
  }
  'type' =>
  string(7) "library"
}
/home/ivanderberg/projects/mijn/www/vendor/easycorp/easy-doc-bundle/src/Command/DocCommand.php:114:
array(5) {
  'name' =>
  string(12) "yarnpkg/yarn"
  'version' =>
  string(8) "v0.17.10"
  'dist' =>
  array(4) {
    'type' =>
    string(3) "tar"
    'url' =>
    string(79) "https://github.com/yarnpkg/yarn/releases/download/v0.17.10/yarn-v0.17.10.tar.gz"
    'reference' =>
    NULL
    'shasum' =>
    NULL
  }
  'require' =>
  array(1) {
    'hostnet/node-tool' =>
    string(6) "^1.0.2"
  }
  'type' =>
  string(7) "library"
}
```

Commits
-------

b11acd1 Fixes rendering with packages listing no source

EasyCorp/easy-doc-bundle,EasyCorp/easy-doc-bundle