lib: Fix possible crash if there's no default adapter

Or it's already been unset.

https://bugzilla.gnome.org/show_bug.cgi?id=706924
lib: Remove empty line
lib: Use g_clear_* helpers when possible