[sql mode] Don't return CodeMirror.Pass when in top context

Issue #2064