Fix segv if only --reset option given
Fix segv if only --reset option given

We didn't recheck that there are enough parameters after shifting the --reset option off the list.
fedorcomander/stlink,ros2/stlink,braincorp/stlink,swegener/stlink,ros2/stlink,simonjwright/stlink,trigrass2/stlink,trigrass2/stlink,gtalusan/stlink,chaosAD/stlink,12019/stlink,12019/stlink,braincorp/stlink,simonjwright/stlink,fedorcomander/stlink,swegener/stlink,chaosAD/stlink,gtalusan/stlink