qtbase: Use Qt's standard paths if expanding value from qt.conf fails
This is the backport of the improved patch for QStandardPaths for Qt 6.
It ensures that we don't use values with unexpanded environment
variables as path, e.g. if GNUPGHOME is not set.
- GnuPG-bug-id: T7700