This test is far cheaper than the cost to get a path string, *or* to get ObjectIds, and yet happens for untracked files that aren't properly git ignored by us... so it happens a lot.  Pull this test up to the very start of the method so we can fail out much more rapidly when it occurs.