dont crash on malformed HTML import
Merge pull request #1898 from ether/fix-bad-html-on-import

Don't crash on malformed HTML import