check that args is not just an empty list

As we export a method that returns an instance of the Jshell object,
we always pass an array as the argument. So if you called jshell()
(without any args) you would get a Jshell back where the first command
was empty.