don't 500 when xforminstance is missing app_id
Merge pull request #1099 from dimagi/fix

don't 500 when xforminstance is missing app_id