Check that X.FirstChild is not null before extracting value.
Merge branch 'master' of ssh://core.linn.co.uk/home/git/ohTopology