Don't log empty metrics to the console

/cc @hampelm