LiveEffect: handle failure to open the stream

Used to crash on a nullptr.
Now it passes the result up to Java.

Bug: #796
6 files changed