Fixed allowing applications for queryIntentActivities

Fixes #1147