[ros-diffs] [tkreuzer] 36523: Simplify and fix InitMetrics. Fixes Coverity error 33.