Fixed an issue with LogOp with path filter.

LogOp was returning incorrect results when using a path filter without the firstParent option set under certain conditions. This was because the previous method was storing the previous objectId of the path, and the incoming commits weren't necessarily in order.