Avoid NULL dereference when leaving a channel with a private key.