Extract model pk before postprocessors are called

This prevents problems when the pk field is renamed, removed or moved to a nested dict in a postprocessor.