Fix read-message bug.

Read message should check for tls? not for registered? to determine which
socket to use.