android: Fix null pointer dereference with existing profiles