If no HTML, don't add try/catch

Although this doesn't cause any halm, it might confuse users as to why it's there, so it's being hidden when there's no HTML.

Arguably we might have to go further and not replace the console logging, but let's land this first.

Fixes #1983