Improve error checking for empty subtitles.