patch 8.2.2528: Vim9: crash when compiling lambda fails

Problem:    Vim9: crash when compiling lambda fails.
Solution:   Bail out after compilation fails. (closes #7862)
diff --git a/src/eval.c b/src/eval.c
index 785d841..444c0fa 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3428,8 +3428,12 @@
 			ufunc_T *ufunc = rettv->vval.v_partial->pt_func;
 
 			// compile it here to get the return type
-			compile_def_function(ufunc,
-						 TRUE, PROFILING(ufunc), NULL);
+			if (compile_def_function(ufunc,
+					 TRUE, PROFILING(ufunc), NULL) == FAIL)
+			{
+			    clear_tv(rettv);
+			    ret = FAIL;
+			}
 		    }
 		}
 		if (ret == NOTDONE)