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