[TIMOB-16979] Added better error handling around the analytics event fil...

...es.