Fix segv if only --reset option given

We didn't recheck that there are enough parameters after shifting the --reset option off the list.