Added check for empty subtitles