fnordmetric-ui.js display fixes

A couple fixes to the ui script covering corner cases that prevent metrics from displaying.