fix exception when all runs failed

- fix an unhandled exception when all runs failed and attempting to call analyze in sweep.py