Miscellanous bugfixes

* getChildrenByTagName() no longer returns unexpected null values
* Exceptions implemented in parser