NuCivic/nucivic-internal#153 Changing ref_field patch. Unlike the old on...

...e that only fix deletion cases this fix insertion cases.

NuCivic/nucivic-internal#153 

### Acceptance test
- [x] Install dkan
- [x] Install https://github.com/NuCivic/dkan_migrate_base
- [x] Go to /admin/content/migrate/groups/dkan
- [x] Run ckan_group_base migration and should no longer be displayed any warning.