textparser: Handle tags with leading spaces

Fixes #2337
Fix problem with loading subtitles from same directory as video content.

If loading was too fast the video initialization code managed to cancel
the load attempt, resulting in no subtitle loaded at all.