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.