Fix regression of metrics not reporting over JMX

Thanks @gtrog for spotting this one!

Closes #552.