BL-697: Log, but do not show, JavaScript errors caught by C#