Fixes error when line after id is not a string

Also moved function call to lastNonEmptyLine outside of the while loop so it's not called on every iteration.
Fixes error when line after id is not a valid timestamp
One bang too many
Merge pull request #5 from mekwall/patch-1

Fixes issues with malformed srt files