Fix zero byte file access using known_length_stream