Add missing check if series.animate exists in render-function

In some cases `series.animate` is `null`. This PR adds a check before calling the function.