Fixed an error that would occur with using web log on shallow clones.

When performing a log through the web api and requesting the count of changes, an exception would be thrown for shallow clones.  This fix will cause the oldest commit of a shallow clone to return 0 for all of the change types.