Added logic to delete NodeHasOneChild