Use the number of audio tracks on the title track as an upper bound instead of number of active tracks.  Fixes rare cases where the second audio track is active, while the first is not.