Add a couple of assertions to make sure that we're not making network calls
on the main thread.