[utils.js] Fix a potential problem in formatMetricPrefix()

Trailing zero may be removed unexpectedly.