Short circuit animate if component is not mounted

If cmp is not mounted, setState will error.