Fix #10514 (snapping marker visible even if not snapped to anything)