Add the subId chceking before the DB write allowed network type

Bug: 185264531
Test: Build pass.
Change-Id: Ibcb1f7662e25570e5091b229142f73ac7aec8288
1 file changed