Add test that causes exception when dealing with broken <a> tags
Fixes #42 - exception caused by broken <a> tags