Fix a potential crash in AudioEngine on Android.