[TIMOB-12664] Added check to make sure that flags are really flags.
Merge pull request #31 from appcelerator/timob-12664

[TIMOB-12518] Added check to make sure that flags are really flags.