Bug 1031612 - In PDF Viewer, the buggy XMP title "Untitled" overrides th...

...e document info title

Reordered to make sure if info['Title'] exists, assign pdfTitle to it.
You might want to make this check case insensitive, e.g. like this:
```javaScript
if (title.toLowerCase() !== 'untitled') {
```