I do not think this should be an ofono_error(), as our main DB is going to be the Android one. Maybe we should call ofono_error() not here or when querying the Android DB, but in line:

if (ap_count == 0) {
...