Throw an exception instead of null-dereference when using functions like skit_stream_read_i8 at the end-of-stream.