Bug 879161 - Fix pdf.js mimetype check.