Bug 1061440 - Let getActiveApnId derive valid id when needed

https://bugzilla.mozilla.org/show_bug.cgi?id=1061440