Graphs2D: Remove deleted pointMarkers from a line
If once added custom pointmarker were removed from a lineseries, it did
not remove a pointgroup's currentMarker in a pointrenderer. The
pointrenderer only checked whether a series had a pointmarker and if it
set that to be the group's current marker. However, it never cleared it.
This patch adds an else-clause and sets the currentmarker to nullptr if
a series doesn't have a pointmarker.
Pick-to: 6.12 6.11
Fixes: QTBUG-149302
Change-Id: I4a40c4687d79b98e6f5ef52021282fe6ca083f4b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>