Fix the case where there is no tagName and node_type != 3
Merge pull request #40 from dvetten/develop

Fix the case where there is no tagName and node_type != 3