Prevents a crash that was caused by an activity with no trackpoints.

Fixed problem with background timer.