compare lxml-nodes to None explicitly to fix deprecation warnings