GRIM/smush: Fix an assert happening in some cases when seeking