Looking at eventlogging data from 5.8.2 external beta, we found some records having empty app_install_id and session_id in MobileWikiAppiOSSessions and MobileWikiAppiOSUserHistory tables. These empty IDs don't seem to occur by chance -- ~10% records of MobileWikiAppiOSSessions table and ~30% records of MobileWikiAppiOSUserHistory table have at least one empty ID. Although I haven't found any convincing pattern or evidence from the data, it seems more than half of these problematic records are from iOS 11.4.
Hive query:
select * from event.mobilewikiappiossessions where year=2018 and (event.app_install_id='' or event.session_id='' ) select * from event.mobilewikiappiosuserhistory where year=2018 and (event.app_install_id='' or event.session_id='' )