ref_transaction_delete(): check that old_sha1 is not null_sha1