Improve handling of truncated files

LzopInputFormat always intended to terminate normally in case of truncated lzo files. But it does not  always happen this way. calling read() after a  read() returning -1 (as done in BufferedReader, e.g.) results in IOException.

The fix is to return -1 when eof is already set.

Added a unit test.