Fix rendering legend icons for labelpnt and labelpoly geometry transformations (#4642)