mythtranscode: fix incorrect memory allocation

Fixes #12213
mythtranscode: always check if audio stream still exists

This doesn’t cater for when there’s a change in audio format or new audio stream, but it prevents the crash when that occurs.

Fixes #12207