Check if socket exist before using it

It is possible that runLoopSocket isn't yet set when we try to send
data. Check if it exists before using it, and return NO if it's not.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>