"After Playback": Always give "Once" events a higher priority than "Always" events.

This commit fixes #3001.
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.