Add check key only if there is at least one check

Change-Id: Ie7e49ebaa0570f7731f469319301a35b0e553a35
diff --git a/heka/meta/sensu.yml b/heka/meta/sensu.yml
index 1e946af..4741ad0 100644
--- a/heka/meta/sensu.yml
+++ b/heka/meta/sensu.yml
@@ -1,3 +1,7 @@
+{%- if pillar.heka.get('log_collector', {}).get('enabled', False) or
+       pillar.heka.get('metric_collector', {}).get('enabled', False) or
+       pillar.heka.get('remote_collector', {}).get('enabled', False) or
+       pillar.heka.get('aggregator', {}).get('enabled', False) %}
 check:
 {%- if pillar.heka.get('log_collector', {}).get('enabled', False) %}
   local_heka_log_collector_proc:
@@ -31,3 +35,4 @@
     subscribers:
     - local-heka-aggregator
 {%- endif %}
+{%- endif %}