Issue with NULL statsd_link fixed.

This commit can help to deal with statsd_link *link = NULL (errors due to wrong initialization).