ril: Use saner logic in determining the validity of an icc app

Instead of generic escape clauses, react to actually invalid data
to select a fallback.
Also, bail out early if the ICC is completely absent

Change-Id: Ie94f582773db212b9ed8bc1a1b3a9a6dc6c60231