Fix check for extension/app in Analytics.