[TIMOB-17007] Fixed bug where analytics would get stuck in an infinite l...

...oop if another process was trying to send analytics.