rate_ctr_group_free(): guard against empty or NULL input

Change-Id: I859a91ee4400b3685c05971f8c66bceca6758724
diff --git a/src/rate_ctr.c b/src/rate_ctr.c
index 75302da..c9319a6 100644
--- a/src/rate_ctr.c
+++ b/src/rate_ctr.c
@@ -255,7 +255,11 @@
 /*! Free the memory for the specified group of counters */
 void rate_ctr_group_free(struct rate_ctr_group *grp)
 {
-	llist_del(&grp->list);
+	if (!grp)
+		return;
+
+	if (!llist_empty(&grp->list))
+		llist_del(&grp->list);
 	talloc_free(grp);
 }