Fixed checking if self.sent exists