Fix force close in WiFi API test code

Enable WiFi network with empty net id, force close will occur.

Add number format exception catch when parsing net id.

Bug: 402260924

Change-Id: I540fdeddc7072e7a9414ac7f9d7aca348d06cd30
1 file changed