patch 8.2.4031: crash in xterm with only two lines

Problem:    Crash in xterm with only two lines. (Dominique Pellé)
Solution:   Only perform xterm compatibility test if possible. (closes #9488)
diff --git a/src/term.c b/src/term.c
index 85f6229..853d93f 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3801,7 +3801,7 @@
 	line_was_clobbered(1);
     }
 
-    if (xcc_status.tr_progress == STATUS_GET)
+    if (xcc_status.tr_progress == STATUS_GET && Rows > 2)
     {
 	// 2. Check compatibility with xterm.
 	// We move the cursor to (2, 0), print a test sequence and then query