patch 8.2.0165: Coverity warning for using NULL pointer

Problem:    Coverity warning for using NULL pointer.
Solution:   Add missing "else".
diff --git a/src/version.c b/src/version.c
index 8ba07a2..112b22c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    165,
+/**/
     164,
 /**/
     163,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 29595cc..9831081 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4075,7 +4075,7 @@
 	    emsg(_(e_no_endtry));
 	else if (scope->se_type == WHILE_SCOPE)
 	    emsg(_(e_endwhile));
-	if (scope->se_type == FOR_SCOPE)
+	else if (scope->se_type == FOR_SCOPE)
 	    emsg(_(e_endfor));
 	else
 	    emsg(_(e_endif));