improved likely_ast_from_tokens error handling