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