Check if iterator has length

If an iterable is passed into `FuncAnimation` check if it has
`__len__` before trying to take it's length

closes #1769