Fix issue with mozdevice >=0.31 on TBPL