I think the case is not fair. In your fake network data, you've defined `capabilities` as an empty array, so the code you added on `wifi_helper.js` never works for edge cases as this bug described. You may need to fake a network without `security` nor `capabilities` defined.