only pass context for logo uploader if there is an application
Merge pull request #5158 from dimagi/fix-nonetype-error

only pass context for logo uploader if there is an application