Check that node is not null
Merge pull request #2 from phadej/null

Check that node is not null