Make rst as_html handle errors a little more nicely.