Fix multiple matching for dynamic groups.

Initial problem:
    Qtile proceeded matching rules until the end.
Example:
    When matching weechat in a first group and xterm in a second one,
    weechat will be setup into the second group.

New behaviour:
    Qtile stops matching after first result.
Example:
    Weechat matchs the first group and the matching process stops.