Bug 989916 - [System] Fix captive_portal_test.js when run in its own sandbox

https://bugzilla.mozilla.org/show_bug.cgi?id=989916