minor fix, added null check after parseNodeList call before calling nodes.getLength()
Merge pull request #1 from tombutt/master

minor fix, added null check after parseNodeList call before calling node...