Wrap mozApps stuff in if (capabilities.webApps) {}