Subtitles: Improve error checking with ASS rendering.

Some crashes could occur when the SSA script was using obviously wrong values.

Uses the same check as libass for maximum glyph size.