fix for WFLY-1282

The conditions of rules in the rewrite valves were ignored.
Additionally the default value for flags in conditions is AND and flags was mandatory so not way to get AND working.