Remove a false exception thrown by getPendingCommits.
Merge pull request #2138 from dart-lang/fix_bug_in_getting_commits

Remove a false exception thrown by getPendingCommits.