Handle non-number hardware info.

## QA

Follow the steps to reproduce in https://bugs.launchpad.net/juju-gui/+bug/1317766 only instead of NaN strings, the UI simply doesn't display anything.