[TIMOB-12265] Fixed bugs in the analytics library when the user is offline.
Merge pull request #18 from appcelerator/timob-12265

[TIMOB-12265] Fixed bugs in the analytics library when the user is offline.