Fix cleanup if doc is not is_extractable