cleaner impl for getAutocompletionContext
don't provide completions if there is no token and no context