don't fail hard when no app id set

https://www.commcarehq.org/couchlog/view/b5319d0a042a550232cccdbcb5a0059c1bd081c0/
Merge pull request #2941 from dimagi/pillow-errors

don't fail hard when no app id set