fix firefox console warnings when animating markers, close #2090