added null check for .jig xml nodes