Fix issue in importdatasetdialog where cursor doesn't reset immediately after error
Description
Fixed issue in importdatasetdialog where cursor doesn't reset immediately after an error by quiting the loop after the error occurs.
Conformity
[ ] Changelog entry[ ] Unit tests[ ] Update INSTALL[ ] Downport- Fixes:
When external dependencies are removed
[ ] Reporting to ...