Sensors/Edgetech2205: Check sockets before dereferencing them.