Fix issue 447

 Apparently some drivers only emit `SANE_STATUS_EOF` once, and `SANE_STATUS_IO_ERROR` after that. The code however assumed that the driver keeps emitting `SANE_STATUS_EOF`. This commit fixes this.