Fixed 2 bugs in executor UI (incl. SPARK-877)

1) UI crashed if the executor UI was loaded before any tasks started. (SPARK-877)
2) The total tasks was incorrectly reported due to using string (rather
than int) arithmetic.