thd->lex->in_sum_func->max_arg_level cannot be set to a bigger value of select->nest_level if select is null.