Fix null pointer derefence when statsd server is unreachable