Resolves #7141
Related to https://github.com/shaka-project/shaka-player/pull/6988#issuecomment-2211344636