Work around animated paths getting varying number of elements
QPainterPath will not store null curve elements where all points are
identical. That can be a problem for handling animated paths, where an
element may be null in some keyframes but not in others, since then
element-by-element interpolation from one path to another breaks down.
Work around by giving a tiny offset to any null element, making it
non-null.
Pick-to: 6.11
Change-Id: Ia456e909fa3ecb94e1f3cb084340b61a17c8e2cf
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>