Fix crash when arguments().mimeType() is an invalid mimetype name.
I have a JIRA bug report with a PDF attached, and mid-clicking the PDF in konqueror leads to opening an okularpart with mimetype="application/x-octet-stream" (the x- in there is very unusual, and unknown to shared-mime-info). Fixed with null pointer checks. REVIEW: 122074
Showing with 6 additions and 4 deletions