tdf#134167: jfw_plugin_getAllJavaInfos can successfully return empty list

Regression introduced with 6ba74150866d71469827de9f4f19268dfa7db137
"jfw::isAccessibilitySupportDesired is obsolete"

Change-Id: I696f3240fa8760ae156ac3b8b1fd1fe42f81c539
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96821
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index c253eec..2457ef3 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -327,9 +327,8 @@
                & arInfos,
                infos);

            if (plerr == javaPluginError::NONE)
            if (plerr == javaPluginError::NONE && !arInfos.empty())
            {
                assert(!arInfos.empty());
                aCurrentInfo = std::move(arInfos[0]);
            }