Fix potential JVM crash in audio output device enmeration.