Handle nil argument properly for StatsD.measure.