Fix JVM crash when reading unaccessible key value