MORTEVIELLE: Fix check of end of stream