Fixed an IndexOverflowException with empty commands (issue #1)