Switched Tern completions context check

Makes code completions in non-JS syntaxes faster