Fix to handle last audio buffer in stream correctly