If we are switching from one image to another too fast, oldRenderer is undefined at that point. This fix that.