Don't crash on malformed HTML import

Fixes https://github.com/ether/etherpad-lite/issues/1894#issuecomment-24676730