Timer now resets when finished, added error checking in JSON parsing

When no points were recorded, the JSONArray was [], which would stop any
items below an empty array to not show in the history