Adds handling for EmptyRepositoryException
    thrown when iterating on commits for repository with no commits.