compare lxml-nodes to None explicitly to fix deprecation warnings
Merge pull request #1959 from dimagi/fix-node-truthiness-warning

compare lxml-nodes to None explicitly to fix deprecation warnings