Check validity of CompressedReader's fd properly.