Remove debug.
Ignore unknown tags (rather than throwing exception).

Credit to Max Degterev for discovering this bug.