Bug 796694 - [PDF viewer] broken PDF file does not trigger error

Transfer the exception to the web layer, alert the message