Make async lookups ignore remote apps

Fixes http://manage.dimagi.com/default.asp?142325