Gracefully handle HTML parse errors

Gracefully handle HTML parse errors when trying to get the thumbnail
of an ``HtmlAsset``.

Closes #814