flatpak: Make sure we don't call versionCompare with a null resource
As seen here: https://crash-reports.kde.org/organizations/kde/issues/6140/
(cherry picked from commit 3f1a023d)
As seen here: https://crash-reports.kde.org/organizations/kde/issues/6140/
(cherry picked from commit 3f1a023d)