fix revert_to_copy

depends on https://github.com/dimagi/dimagi-utils/pull/113