fix exception when self.receipt_sender being None