Fix #9704, GdalTools file dialogs return QPyNullVariant due to QSettings undefined return type