Use nsMainThreadPtrHandle<NetDashboardCallback> for JS objects. Remove pointles code that clears the JS callback. Fix test using out of scope variable.