Fixed problem with refs #10811.

When 'to_field' is specified with a FK, then we need to check the pk value
the object.