Fix crash on NULL frame after convert_frame