Fix segv if only --reset option given

We didn't recheck that there are enough parameters after shifting the --reset option off the list.
Merge pull request #215 from petiepooo/patch-1

Fix segv if only --reset option given