Prevent fatal JVM crash when enumerating audio devices.