Subtitles: Improve error checking with ASS rendering.

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

Uses a similar check as libass for the glyph size.