Fix fatal error in stats model

Fixes fatal error in stats model if there are connection problems
with the tracker server
Merge branch 'solarissmoke-bug-stats-issues' into develop