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

Request created to help with user testing before commit.