[STORM-366] Add color span to most recent error and fix ui templates.

Invoking js tablesorter on empty list causes exception and stops the rest of the tables from populating. So adding conditional  checks before calling into tablesorter.
Why is this an Empty string if it is supposed to be an integer?