support for diffing the empty tree

added missing support for diffing tree-to-tree with NULL as argument.
(see issue #222)