Prevented looping of extremely short (<2 frames long) animations

Signed-off-by: Martin Evans <martindevans@gmail.com>