Fix crash when audio buffer callback is called after queue has been finished