Don't crash if fopen fails
Summary:
If we have a qrc url, all checks so far fails, and this one returns null.
It might also be possible to get here in some race condition.
Reviewers: aacid
Reviewed By: aacid
Subscribers: Okular
Tags: Okular
Differential Revision: https://phabricator.kde.org/D12643