[Misc] Avoid NPE which can now happen after the fix for (XWIKI-10976: XE doesn't stop if there's a failure during the PersistentTestContext initialization)