Fix data import when editing existing resource

Fixes EDOZWO-370