fix issue when the dispose method is restore to previous but no composited frame is available yet
fix issue when the dispose method is restore to previous but no composited frame is available yet

ToadKing/libgif-js,sibnerian/sibgif,buzzfeed/libgif-js,buzzfeed/libgif-js,ToadKing/libgif-js