TLS Stream: handle successful TLS handshake after listener shutdown
It was possible that accept callback can be called after listener shutdown. In such a case the callback pointer equals NULL, leading to segmentation fault. This commit fixes that.
Cherry-picked from !6932 (merged) (an extra commit in a backport of !6917 (merged)).
Edited by Michał Kępień