[Core] Code style fixes.
[Core] Guard the reply for #1804.
[Core] Still handle/save the SSL error when reply finishes.

Fixes #1804.
[Core] Fixed leaking SslErrorDialogs.

We shouldn't create a parent for it.