Return null for not set socket

This is correct value for unset socket.

Signed-off-by: Michal Čihař <michal@cihar.com>