[MNG-6938] MavenITBootstrapTest fails with StringIndexOutOfBoundsException: String index out of range: -1

This is a regression introduced by 2c060ccf4912313eef65a5f6de0684efd7185979.
diff --git a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
index 592ad9e..17d4d3d 100644
--- a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
+++ b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
@@ -216,8 +216,15 @@
         else
         {
             int index = testName.indexOf( ' ' );
-            out.print( AnsiSupport.bold( testName.substring( 0, index ) ) );
-            out.print( testName.substring( index ) );
+            if ( index == -1 )
+            {
+                out.print( testName );
+            }
+            else
+            {
+                out.print( AnsiSupport.bold( testName.substring( 0, index ) ) );
+                out.print( testName.substring( index ) );
+            }
             out.print( '.' );
         }