fix SendAnalytics when error occurs 

(that make apps crash if cannot send analytics to facebook)