don't fail hard if app_id is not available
don't crash on auto-gps config if no app available
Merge pull request #5054 from dimagi/none-app-fix

empty app fixes