Android: Fix Network.hasNetwork