fix crash when intercom is not defined