Fix custom parent field in mode 4.

If the parent reference field is not named pid, the name must read from getParentChildCondition().