Make async lookups ignore remote apps

Fixes http://manage.dimagi.com/default.asp?142325
I'm wondering if it would be better not to memoize the result of this function since the result of `apps` is also memoize, and that seems to be the only method that calls this one. Am I missing somewhere else that this is called?