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