Throw exception if null packageName is received

Validate the calling package belongs to the UID. This will also throw an
exception if the packageName is null.

Bug: 230277650
Test: atest com.android.server.wifi
Change-Id: I8dc6ae627347d639ce905de3797db49d0ef42154
1 file changed