do not write an error if the metric was disabled
jshint fixes