Do a null check on setting an AP as configured

This was introduced when trying to fix bug 2296038. A null check is required on AP.

Bug: 2296038
1 file changed