Fix an NPE when scanning excluded commits.

I'm not clear on why excludedCommits is null (serialization, maybe?) but
this works around it.
Merge pull request #13 from peterjanes/master

Fix an NPE when scanning excluded commits.