Fix crashes in log statements
Fix crashes in log statements

We might not have an error in claim_op() if the application is ignoring
errors.

(There will always be an error in handshake_thread(), though, so no need
to check if it's NULL in this case.)

Fixes #131

GNOME/glib-networking,GNOME/glib-networking,GNOME/glib-networking