analytics.py: detect untagged end nodes
Fix error when splitting an end node.