Fix ContentStream parsing on EOF