check for dead stream in getPos()