Fix a segfault when canceling a "R"ead