Fix for segfault when overriding the default port with an old version of gssdp

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

This should be fixed on the upstream soon. But commiting it here in the
 meantime.