SearchCursor.matches() doesn't work properly if query is /.*/ issue #1155

This is a fix for bug https://github.com/marijnh/CodeMirror/issues/1155 which is needed for my pull-request https://github.com/adobe/brackets/pull/2485 and for this line of code in particular https://github.com/soswow/brackets/commit/8b9c538b7243a0318009146222f7147b92f6bb5e#L0R171

It fixes the case when query is /.*/.
```javascript
var line = cm.getLine(pos.line).slice(pos.ch) //become ""
match = line.match(query) //become [""] which is truethy value
```
and ```if(match)``` but expected result - it shouldn't