google analytics: do nothing when there is no category

I did this line because I want to send events without category e.g. to Intercom and not to GA.. because there are limited GA requests 

and without that line GA will throw an error because there is no category!