editor: Fix bug where both a polygon and its vertex were selected at the same time.