fix: in case of a missing original transaction the restore function crashed