f2c80c4207
In some environments `Element` won't be available, which is needed for the `Element.prototype.getAnimations` polyfill. If `Element` is not available at all, it means that we are not in a browser so we don't need the polyfill. Fixes: #3490