[WifiBaseTest]Correcting condition to raise AP value error. This change is not merged to pi-dev and as a result pi-dr1-release runs fail CHERRY PICKED FROM AOSP Bug: 111500771 Bug: 111502276 Test: Local Change-Id: I62c1363013829817b5c20c125f30362bf04a9ad9 Merged-In: I6af55fe0faffbfa7726d4439d32972ca8f92769d