s4-socket: detect NULL server in socket connection code