fix for #33395: The deprecated constructor of BooleanClause does not set new state (patch provided by Paul Elschot, slightly modified)