[STORM-370] Add check for empty table before sorting dom in UI

To avoid ```tablesorter``` from throwing exception - requires additional check to ensure that table sorter is not invoked on empty recordset.