tls: always reset this.ssl.error after handling

Otherwise assertion may happen.