Fix crash in Kdenlive title producer (kdenlive-2987)