avfilter/trim: Fix assertion failure with empty frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>