[JVM] Don't throw on end of STDIN.

This enables both of these, without throwing an exception:

* ctrl-d at the REPL prompt to quit
* `echo 2+2 | ./magpie`