reader: add missing case for reaching eof.