Fix checkout finding pending check-outs in the wrong term. Refs #823