smartxml: handling undefined value sent to DocumentNode.sameNode