TIMOB-14554 Check for flag set with and filter.

Jira has test. https://jira.appcelerator.org/browse/TIMOB-14554