Fixes bug when doing two disconnected patterns with a WITH in between
Merge pull request #1226 from systay/disconnected-matches-bug

Fixes bug when doing two disconnected patterns with a WITH in between