diff-tree: fix "whole sub-tree disappeared or appeared" case