Fixed listing of commits in an empty repository

* src/git2r.c (revisions): Added check if repository is empty before
  walking commits. Returns an empty list if the repository is empty.