fixed OutOfBoundsException on commands without arguments

fixes #22
Merge pull request #24 from minus7/master

fixed OutOfBoundsException on commands without arguments