fixed warning when no parent found for a commit

Sometimes a commit has no parents. 
This PR fixes a PHP notice when this happend:

```
Notice: Undefined variable: result in [...]/vendor/gitonomy/gitlib/src/Gitonomy/Git/Commit.php on line 122
```