Some minor fixes in PAT jet tools.

Backport of some bug fixes from #1543 .