Replace missing provide_context call with logs of exception when error rendering DOM for PDF