qtbase: Use Qt's standard paths if ExpandEnvironmentStrings fails
Don't try to expand environment variables if the value doesn't contain
any. And if ExpandEnvironmentStrings fails (which should never happen)
then use Qt's standard paths. Use Qt's logging to log warnings.
- GnuPG-bug-id: T7700