Avoid critical errors when addresses is null

https://bugzilla.gnome.org/show_bug.cgi?id=732982