prevent crash when returning to a gif renderer from some other context