Patch Set 2: No score

I haven't actually fixed the bug you seem to still see here.  

But I added a test case, and I _think_ the test case is validating the original bug I reported to you against this code.

Are you sure you were testing with this change in JGit in your Gerrit test instance, and weren't using an older copy of JGit?  I'll retry the manual test script tomorrow within Gerrit and see if I can better isolate the failure you are still seeing.  But at least this change tests for and fixes the first bug we found today.