Remove a false exception thrown by getPendingCommits.

TBR