Check that network provider exists before use

Bug: 173459696
Test: presubmits
Change-Id: Ibb0300526e7f9e690c641ffc84fd74a9fffcd9ed
1 file changed