log failure to render latex

and fallback on plaintext display
support latex in display messages in qt