Fix compat issue from java.security.KeyStore API update

Update changed order of conditions that might trigger documented
exceptions and this lead to a failure on the main internal branch.

Fix: 216552850
Test: atest CtsKeystoreTestCases:android.keystore.cts.KeyStoreTest
Change-Id: I994ea61ca46f7ac98b3e934064a529acdd4bc3e0
1 file changed