Fix crashing on getPeerCertificate if we somehow get data while somehow there's no transport

Appears to only affect web.