Fix a bug in SslHandler where a truncated packet isn't handled correctly

- Fixes #1534