Fix gap handling for transcripts
This is a bugfix - the array keys for the transcripts were not assigned correctly in case of gaps.
The bug can be seen on pages where there is a page without text in it, e.g. https://www.peppercarrot.com/en/article244/special-holiday-episode&transcript=1
Also, a small code cleanup for the glob calls.