- fixed NULL sockets in external scenarios (this leads to crashing when building the contact hdr)
  Reported by dexteruk on IRC .