BUG/MAJOR: stick_table: Complete incomplete SEGV fix

This commit completes the incomplete segmentation fault fix
in commit ac1f3ed64b58bd178865c6f2cc8f6f306d9e1e15.

Likewise it must be backported to haproxy 1.8.
diff --git a/src/stick_table.c b/src/stick_table.c
index 4294654..8e16830 100644
--- a/src/stick_table.c
+++ b/src/stick_table.c
@@ -1596,8 +1596,10 @@
 	smp->data.type = SMP_T_SINT;
 	smp->data.u.sint = 0;
 
-	if (ts)
-		smp->data.u.sint = ts->ref_cnt;
+	if (!ts)
+		return 1;
+
+	smp->data.u.sint = ts->ref_cnt;
 
 	stktable_release(t, ts);
 	return 1;