raise SyntaxError when compile_command fails

If you try to throw multiple statements in a >>>/... sequence,
compile_command returns None (or at least something unusual).
When JES tries to exec it, the user gets an unusual error.
Now, the interpreter detects this case and raises SyntaxError instead.