Fixes profile problem for queries starting with OPTIONAL MATCH
Merge pull request #1816 from systay/optional-profile

Fixes profile problem for queries starting with OPTIONAL MATCH