WFS: fix parsing of filters with parenthesis (#4986)