ssl3_digest_cached_records: check for NULL after allocating s->s3->handshake_dgst