Fixes #1: Nodes with no edges in XML lead to END