#1772: Fixed a bug where the fragment root would be set to null (the Difference method returned a null value when the compared subtrees were identical).