patch 9.0.0997: Coverity warns for dead code

Problem:    Coverity warns for dead code.
Solution:   Don't use ASCII_ISUPPER() for a negative value.
diff --git a/src/term.c b/src/term.c
index 3df1214..13e3709 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5296,7 +5296,7 @@
     if (!VIM_ISDIGIT(*ap))
 	first = *ap++;
 
-    if (ASCII_ISUPPER(first))
+    if (first >= 'A' && first <= 'Z')
     {
 	// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
 	// no argument follows.